<template>
  <el-table
      :data="tableData"
      style="width: 100%">
    <template v-for="(item,index) in list">
      <el-table-column
          :prop="item.prop"
          :label="item.label"
          :key="index"
      >
      </el-table-column>
    </template>
  </el-table>
</template>

<script>
export default {
  name: "hudong",
  data(){
    return{
      //标题数据
      tableData: [
        {
          nicheng: '默默',
          shichang: '2',
          jinru: '3',
          tuichu: '4',
          liaotian:'5',
          qiandao:'1',
          dajuan:'3',
          suitang:'6'
        },
      ],
      //表头数据
      list:[
        {prop:'nicheng',label:'昵称'},
        {prop:'shichang',label:'观看时长'},
        {prop:'jinru',label:'进入次数'},
        {prop:'tuichu',label:'退出次数'},
        {prop:'liaotian',label:'聊天次数'},
        {prop:'qiandao',label:'签到次数'},
        {prop:'dajuan',label:'答卷次数'},
        {prop:'suitang',label:'随堂测次数'},

      ]
    }
  }
}
</script>

<style scoped>

</style>
